package org.artifact.core.context.bytebuf;

import io.netty.buffer.Unpooled;

public class NettyByteBuffFactory implements IByteBuffFactory {

	@Override
	public IByteBuff allocate() {
		return new NettyByteBuf(Unpooled.buffer());
	}

	@Override
	public IByteBuff wrap(byte[] data) {
		return new NettyByteBuf(Unpooled.wrappedBuffer(data));
	}
}
